
package com.woniu.hospital.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.woniu.hospital.mapper.SurgicalMapper;
import com.woniu.hospital.domain.Surgical;
import com.woniu.hospital.service.ISurgicalService;

/**
 * 手术记录表Service业务层处理
 *
 * @author wolf-six
 * @date 2023-02-18
 */
@Service
public class SurgicalServiceImpl implements ISurgicalService
{
    @Autowired
    private SurgicalMapper surgicalMapper;

    /**
     * 查询手术记录表
     *
     * @param surgicalId 手术记录表主键
     * @return 手术记录表
     */
    @Override
    public Surgical selectSurgicalBySurgicalId(Long surgicalId)
    {
        return surgicalMapper.selectSurgicalBySurgicalId(surgicalId);
    }

    /**
     * 查询手术记录表列表
     *
     * @param surgical 手术记录表
     * @return 手术记录表
     */
    @Override
    public List<Surgical> selectSurgicalList(Surgical surgical)
    {
        return surgicalMapper.selectSurgicalList(surgical);
    }

    /**
     * 新增手术记录表
     *
     * @param surgical 手术记录表
     * @return 结果
     */
    @Override
    public int insertSurgical(Surgical surgical)
    {
        return surgicalMapper.insertSurgical(surgical);
    }

    /**
     * 修改手术记录表
     *
     * @param surgical 手术记录表
     * @return 结果
     */
    @Override
    public int updateSurgical(Surgical surgical)
    {
        return surgicalMapper.updateSurgical(surgical);
    }

    /**
     * 批量删除手术记录表
     *
     * @param surgicalIds 需要删除的手术记录表主键
     * @return 结果
     */
    @Override
    public int deleteSurgicalBySurgicalIds(Long[] surgicalIds)
    {
        return surgicalMapper.deleteSurgicalBySurgicalIds(surgicalIds);
    }

    /**
     * 删除手术记录表信息
     *
     * @param surgicalId 手术记录表主键
     * @return 结果
     */
    @Override
    public int deleteSurgicalBySurgicalId(Long surgicalId)
    {
        return surgicalMapper.deleteSurgicalBySurgicalId(surgicalId);
    }
}
